package cn.shop.cloud;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @program: work
 * @ClassName WebSocketApp
 * @description:长连接
 * @author: 李尧坤
 * @create: 2025−01-10 13:47
 * @Version 1.0
 **/

@SpringBootApplication
public class WebSocketApp {

    public static void main(String[] args) {
        SpringApplication.run(WebSocketApp.class,args);
    }


    //扫描注解拿到数据
    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();

    }
}

